﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace PrisonStep
{
    class SmokePlumeParticleSystem : ParticleSystem
    {
        public SmokePlumeParticleSystem(Game aGame, ContentManager aContent)
            : base(aGame, aContent)
        {
        }

        protected override void InitializeSettings()
        {
            TextureName = "smoke";
            mMaxParticles = 600;
            mDuration = TimeSpan.FromSeconds(10);
            

            BlendState lBlendState = BlendState.NonPremultiplied;
            //lBlendState.ColorDestinationBlend = Blend.InverseSourceAlpha;
            mBlendState = lBlendState;
            mMinHorizontalVelocity = 0;
            mMaxHorizontalVelocity = 15;
            mMinVerticalVelocity = 10;
            mMaxVerticleVelocity = 20;
            mGravity = new Vector3(-20, -5, 0);

            //MinColor = new Color(64, 94, 128, 100);
            //MaxColor = new Color(255, 255, 255, 100);
            mEndVelocity = 0.75f;
            mMinRotateSpeed = -1;
            mMaxRotateSpeed = 1;

            mMinStartSize = 4;
            mMaxStartSize = 7;

            mMinEndSize = 35;
            mMaxStartSize = 140;
        }
    }
}
